<template>
  <div class="browsing">
    <el-input
      style="width: 240px"
      v-model="records.orderNo"
      placeholder="订单号"
    />

    <el-date-picker
      v-model="records.times"
      type="daterange"
      start-placeholder="开始日期"
      end-placeholder="结束日期"
      :default-value="[new Date(2010, 9, 1), new Date(2010, 10, 1)]"
      format="YYYY/MM/DD"
      value-format="x"
      style="margin: 0 20px"
    />

    <el-button color="#6675FF" :icon="Search" @click="timeclick">
      查询
    </el-button>
  </div>
  <div class="browsings">
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="全部" name="1" />
      <el-tab-pane label="联系中" name="2" />
      <el-tab-pane label="已投标" name="3" />
      <el-tab-pane label="已合作" name="4" />
      <el-tab-pane label="放弃" name="5" />
      <el-tab-pane label="不相关" name="6" />
      <el-tab-pane label="已中标" name="7" />
      <el-tab-pane label="未中标" name="8" />
    </el-tabs>
    <div class="browsings_box">
      <div class="browsings_b_top">
        <div class="browsings_b_tl">
          <span class="browsings_title">
            临翔城市供排水有限责任公司各自来水厂，污水处理厂建筑物及构筑物分布式光伏屋顶出租竞争性谈判公告
          </span>
          <span class="browsings_zb">招标</span>
          <span class="browsings_two">竞争性谈判</span>
          <span class="browsings_two">采购意向</span>
        </div>
        <div class="browsings_b_rig">
          <div class="money">
            <!-- {{ money(item.jg) }} -->
            <img
              style="width: 20px; margin-right: 5px"
              src="@/assets/img/money.png"
              alt=""
            />12332万元
          </div>
          <div class="address">
            <!-- {{ diqu(item.provinceid) }} -->
            <img
              style="width: 20px; margin-right: 5px"
              src="@/assets/img/dz.png"
              alt=""
            />123123
          </div>
          <div class="timing">
            <img
              style="width: 20px; margin-right: 5px"
              src="@/assets/img/sj.png"
              alt=""
            />
            2312332
            <!-- {{ timestamp(item.dl_posttime) }} -->
          </div>
        </div>
      </div>
      <el-row>
        <el-col :span="6">
          <div class="browsings_b_btn">
            <div class="browsings_b_btn_box">
              <div class="browsings_b_btn_let">已投标</div>
              <div class="browsings_b_btn_con">备注内容</div>
            </div>
            <div class="browsings_time">2024-01-25 20:20:23</div>
          </div>
        </el-col>
      </el-row>
    </div>
    <div style="margin-top: 15px">
      <Pagination ref="pagination" :talet="talet" />
    </div>
  </div>
</template>

<script setup>
// import { timestamp, diqu, money } from "@/utils/index";
import { Search } from "@element-plus/icons-vue";
import Pagination from "./pagination/index.vue";
import { ref, reactive } from "vue";
let activeName = ref("1");
let talet = ref("");
let pagination = ref();
let records = reactive({
  orderNo: "",
  times: [],
});

const timeclick = () => {
  // pagination.value.currentPage
  // pagination.value.pageSize
};

const handleClick = (tab, event) => {
  console.log(tab, event);
};
</script>

<style lang="scss" scoped>
.browsing {
  height: 76px;
  padding: 20px;
  margin-bottom: 10px;
  background-color: #fff;
}

.browsings {
  height: 720px;
  padding: 20px;
  background-color: #fff;
}

.browsings_box {
  // display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #eeeeee;

  .browsings_b_top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;

    .money {
      margin-right: 20px;
      color: #fe8d03;
    }

    .address {
      margin-right: 20px;
    }

    .browsings_b_tl {
      display: flex;

      .browsings_title {
        width: 500px;
        margin-right: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #333333;
      }

      .browsings_zb {
        padding: 4px 10px;
        margin-right: 10px;
        font-size: 14px;
        border-radius: 4px;
        background-color: #e6e9fe;
        color: #f43107;
      }

      .browsings_two {
        padding: 4px 10px;
        margin-right: 10px;
        font-size: 14px;
        border-radius: 4px;
        break-before: 4px;
        background-color: #f5f5f5;
        color: #a9b1be;
      }
    }

    .browsings_b_rig {
      display: flex;
    }
  }

  .browsings_b_btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5f5f5;

    .browsings_b_btn_box {
      display: flex;
      align-items: center;

      .browsings_b_btn_let {
        padding: 5px 10px;
        background-color: #f43107;
        border-radius: 20px;
        color: #ffffff;
      }

      .browsings_b_btn_con {
        margin-left: 20px;
        font-size: 14px;
        color: #a9b1be;
      }
    }

    .browsings_time {
      margin-left: 61px;
      font-size: 12px;
      color: #a9b1be;
    }
  }
}

.el-button {
  width: 90px;
  height: 36px;
  color: #fff;
}
</style>
